#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
Author: changsu xuekai9595@qq.com
Date: 2024-04-15 17:50:26
LastEditors: changsu xuekai9595@qq.com
LastEditTime: 2024-04-15 17:50:50
Description: 

Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
'''
import hashlib
import requests

import argparse

while True:
    input_url = input("Please input the file url: ")

    response = requests.get(input_url).content

    sha256 = hashlib.sha256(response).hexdigest()

    print("-----------The SHA256 of the file is: ", sha256)
